package cn.stylefeng.guns.modular.transport.mapper;

import cn.stylefeng.guns.modular.rest.transport.vo.StoreInfo;
import cn.stylefeng.guns.modular.transport.entity.InwarehouseTrack;
import cn.stylefeng.guns.modular.transport.model.params.InwarehouseTrackParam;
import cn.stylefeng.guns.modular.transport.model.result.InwarehouseTrackResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 到仓跟踪 Mapper 接口
 * </p>
 *
 * @author wp
 * @since 2025-04-19
 */
public interface InwarehouseTrackMapper extends BaseMapper<InwarehouseTrack> {

    /**
     * 获取列表
     *
     * @author wp
     * @Date 2025-04-19
     */
    List<InwarehouseTrackResult> customList(@Param("paramCondition") InwarehouseTrackParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wp
     * @Date 2025-04-19
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") InwarehouseTrackParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wp
     * @Date 2025-04-19
     */
    Page<InwarehouseTrackResult> customPageList(@Param("page") Page page, @Param("paramCondition") InwarehouseTrackParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author wp
     * @Date 2025-04-19
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") InwarehouseTrackParam paramCondition);

    StoreInfo getStoreInfoByClientVolSumId(Long clientVolSumId);

    Page<InwarehouseTrackResult> findHx_daocanggenzong(@Param("page") Page page,
                                                       @Param("paramCondition") InwarehouseTrackParam inwarehouseTrackParam,
                                                       @Param("condition") String condition,
                                                       @Param("startTime") String startTime,
                                                       @Param("endTime") String endTime,
                                                       @Param("operateId") Long operateId);
}
